@tailwind base;
@tailwind components;
@tailwind utilities;

/* 单行省略号 */
.single-line-ellipsis {
    word-break: break-all;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  /* 超二行省略号 */
  .multiline-two-ellipsis {
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  /* 超三行省略号 */
  .multiline-ellipsis {
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  /* 滚动条样式 */
::-webkit-scrollbar {
  @apply h-[6px] w-[6px] bg-gray-200 dark:bg-[#202124];
}
::-webkit-scrollbar-track {
  @apply bg-gray-200 dark:bg-[#202124];
}
::-webkit-scrollbar-thumb {
  @apply bg-orange-400 dark:bg-indigo-500;
}

@font-face {
  font-family: misans;
   src: url(https://sourcebucket.s3.bitiful.net/fonts/霞鹜文楷.woff2);
  /*src: url('~/assets/fonts/miSans-Normal.woff2');*/
  font-display: swap;
}

@font-face {
  font-family: kitty;
  src: url('~/assets/fonts/kitty.ttf');
  font-weight: bold;
  font-display: swap;
}

body,
html {
  cursor: url('~/assets/common/x1.cur'), auto;
  /* @apply font-mono; */
  font-family: misans, 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB',
    'Heiti SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

/* Header */
.header-nav.active {
  @apply bg-transparent hover:bg-[rgba(255,255,255,0.7)] dark:hover:bg-[rgba(38,38,38,0.7)];
}


html.light {
  @apply text-v-fontcolor bg-v-background;
}

html.dark {
  @apply text-v-fontcolor-dark bg-v-background-dark;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: hiden 3s forwards;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #333;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 2s linear infinite;

}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hiden {
  to {
    display: none;
  }
}
